﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using smartphone.App_Code;

namespace smartphone.UserControls
{
    public partial class ProductsInSameManufacturer : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request.QueryString["ProductId"];
            if (id != null)
            {
                Product product = new Product();
                RepeaterSameManufacturer.DataSource = product.GetProductsInSameManufacturer(Int32.Parse(id));
                RepeaterSameManufacturer.DataBind();
            }
        }
    }
}